package com.ibeeking.gmc.global.service.common.constants;

/**
 * @ClassName RedisKeyConstant
 * @Description redisKey
 * @Author ibeeking
 * @Date 2020-06-29 14:54
 **/
public class RedisKeyConstant {

    public static final String MODULE = "GLOBAL:";

    /**
     * 30天
     */
    public static final long MONTH = 10125 << 8L;
    /**
     * 1天
     */
    public static final long DAY = 675 << 7L;
    /**
     * 半天
     */
    public static final long HALF_DAY = 675 << 6L;
    /**
     * 1小时
     */
    public static final long HOUR = 225 << 4L;
    /**
     * 租户数据源
     */
    public static final String TENANT_DATASOURCE = "TENANT_DATASOURCE:";

    /**
     * 全局字典类型
     */
    public static final String GLOBAL_DICT_TYPE = "GLOBAL_DICT_TYPE:";
    /**
     * 全局字典值
     */
    public static final String GLOBAL_DICT_VALUE = "GLOBAL_DICT_VALUE:";

    /**
     * 中国地区
     */
    public static final String AREA = MODULE +"AREA:";

    /**
     * 行业树
     */
    public static final String INDUSTRY_TREE_LIST = MODULE +"INDUSTRY_TREE_LIST";

    /**
     * 行业树
     */
    public static final String INDUSTRY_LIST = MODULE +"INDUSTRY_LIST";

    /**
     * 终端
     */
    public static final String FRONT_END_LIST = MODULE +"FRONT_END_LIST";

    /**
     * 消息代码
     */
    public static final String GLOBAL_MSG_BASE_CODE = MODULE +"GLOBAL_MSG_BASE_CODE:";
    /**
     * 第三方平台授权
     */
    public static final String OPEN_AUTH = MODULE +"OPEN_AUTH:";

    public static final String TENANT_INFO_CODE = MODULE +"TENANT_INFO_CODE:";

    public static final String TENANT_INFO_INIT_LOG = "TENANT_INFO_INIT_LOG:";

    public static final String TENANT_INFO_RECOVERY_LOG = "TENANT_INFO_RECOVERY_LOG:";

    public static final String WX_CP_TP_SUITE_TICKET = "wx:cp:tp:suite_ticket:";

    public static final String WX_CP_TP_SUITE_ACCESS_TOKEN = "wx:cp:tp:suite_access_token:";
    public static final String WX_CP_DK_SUITE_TICKET = "wx:cp:dk:suite_ticket:";

    public static final String WX_CP_DK_SUITE_ACCESS_TOKEN = "wx:cp:dk:suite_access_token:";
}
